package com.action;

import com.bean.House;
import com.biz.HouseBiz;
import com.biz.impl.HouseBizImpl;
import com.opensymphony.xwork2.ActionSupport;

public class ShowAction extends ActionSupport {
	private int id;
	private House house;
	
	@Override
	public String execute() {
		HouseBiz biz = new HouseBizImpl();
		house = biz.get(id);
		System.out.println(house.getTitle() + "\t" + house.getPrice());
		return SUCCESS;
	}

	public House getHouse() {
		return house;
	}

	public void setHouse(House house) {
		this.house = house;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
